#ifndef BRIDGE_H
#define BRIDGE_H

#include <QObject>
#include <QJsonObject>
#include <QJsonArray>
class bridge :public QObject
{
Q_OBJECT
public:
    static bridge* instance();

public slots:
    void showMsgBox(int idx);
    void on_sendsig2js(QString);

Q_SIGNALS:
    void sendstring2js(QString);
    void sendjsonarray2js(QJsonArray);
    void sendjsonobj2js(QJsonObject);
    void sigDirIndexChange(int);

private:
    bridge();
};

#endif // BRIDGE_H
